-
Notifications
You must be signed in to change notification settings - Fork 13.5k
core: fix const ptr::swap_nonoverlapping when there are pointers at odd offsets #134689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rustbot has assigned @workingjubilee. Use |
Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter cc @rust-lang/miri, @rust-lang/wg-const-eval |
71fbca1
to
313c4bc
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with output blessed
…dd offsets in the type
313c4bc
to
af1c8da
Compare
@bors r=oli-obk |
Somehow this does not show up in the queue? |
@bors r=oli-obk |
💡 This pull request was already approved, no need to approve it again.
|
@bors rollup |
Ensure that the pointer gets swapped correctly even if it is not stored at an aligned offset. This rules out implementations that copy things in a
usize
loop -- so our implementation needs to be adjusted to avoid such a loop when running in const context.Part of #133668